﻿using Models;
using System.Diagnostics.Metrics;

namespace IAPIBLL
{
    public interface IMemberBll
    {
        /// <summary>
        /// 添加会员
        /// </summary>
        /// <param name="member"></param>
        /// <returns></returns>
        int AddMember(Member member);

        /// <summary>
        /// 会员修改
        /// </summary>
        /// <param name="member"></param>
        /// <returns></returns>
        int UpMember(Member member);

        /// <summary>
        /// 根据会员编号删除会员信息 
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int DeleteMember(int id);
        /// <summary>
        /// 查询所有会员信息
        /// </summary>
        /// <returns></returns>
        List<Member> GetMembers();
    }
}
